package com.pandora.loan.home.service;

import com.pandora.loan.home.dto.request.AccessTokenRequest;
import com.pandora.loan.home.dto.response.AccessTokenResponse;
import com.pandora.loan.home.entity.Account;

import java.util.List;

/**
 * @author developer
 */
public interface AccountService {
    /**
     * getById
     * @param id id
     * @return Account
     */
    Account getById(long id);

    /**
     * getByStatus
     * @param status status
     * @return AccountList
     */
    List<Account> getByStatus(int status);

    /**
     * requestAccessToken
     * @param req req
     * @return AccessTokenResponse
     */
    AccessTokenResponse requestAccessToken(AccessTokenRequest req);
}
